<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : xxxJuridica
    Created on : 13/06/2009, 08:44:37
    Author     : Guilherme
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle1"/>
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
                <script language="JavaScript" src="./view/js/MascaraCampos.js" type="text/javascript"></script>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup binding="#{view$CadastrarFornecedor.painelPrincipal}"
                        dragListener="#{view$CadastrarFornecedor.painelPrincipal_processMyEvent}" id="painelPrincipal" styleClass="principal">
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{view$Util.btn_voltar_action}" id="panelLayoutLogo" image="/resources/images/logo_soligee.png"
                                immediate="true" partialSubmit="true" styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Painel Titulo -->
                        <ice:panelLayout id="panelLayoutTitulo" styleClass="titulo fornecedor">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" style="height: 54px; right:10px; top: 5px; position: absolute; width: 54px">
                                <ice:commandButton action="#{view$CadastrarFornecedor.btn_voltar_action}" binding="#{view$CadastrarFornecedor.btn_voltar}"
                                    id="btn_voltar" image="/resources/images/btn/voltar.png" immediate="true" partialSubmit="true" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Painel Conteúdo -->
                        <ice:panelLayout id="painelConteudo" layout="flow" styleClass="conteudo">
                            <!-- Painel Caixa de Conteúdo -->
                            <ice:panelLayout id="painelCxConteudo" styleClass="cxConteudo">
                                <ice:panelLayout id="cxConteudoTopo" styleClass="cxConteudoTopo"/>
                                <!-- Painel Abas -->
                                <ice:panelLayout id="painelAbas" styleClass="pnAbaCadastro">
                                    <!-- Colocar TabSet Aqui -->
                                    <ice:panelTabSet binding="#{view$CadastrarFornecedor.panelTabSetCadastrarPessoaJuridica}"
                                        id="panelTabSetCadastrarPessoaJuridica" styleClass="pnTbSetCadastro" tabPlacement="Top">
                                        <ice:panelTab binding="#{view$CadastrarFornecedor.aba01}" id="aba01" label="Fornecedor">
                                            <ice:panelLayout id="panelLayoutAba01" layout="flow" styleClass="pnLayCadastro">
                                                <ice:panelLayout id="panelLayoutA1" layout="flow" styleClass="pnLayForm">
                                                    <!--ID -->
                                                    <ice:outputLabel id="tx_codigo" styleClass="rotulo pq" value="Cód."/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoCodCliente}" id="campoCodCliente"
                                                        partialSubmit="true" readonly="true" styleClass="entradaTxt pq" title="Código do Fornecedor."/>
                                                    <!--Nome Completo -->
                                                    <ice:outputLabel id="tx_nomeCompleto" styleClass="rotulo gd" value="Nome (*):"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoNomeCompleto}" id="campoNomeCompleto"
                                                        onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt gd" title="Insira o Nome Completo do Fornecedor."/>
                                                    <!--Data Cadastro -->
                                                    <ice:outputLabel id="tx_dataCadastro" styleClass="rotulo" value="Data do Cadastro: "/>
                                                    <ice:selectInputDate binding="#{view$CadastrarFornecedor.campoDataCadastro}"
                                                        converter="#{view$CadastrarFornecedor.sqlDateConverter1}" id="campoDataCadastro"
                                                        inputTitle="Insira a Data de realização do Cadastro." partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                                        renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt"
                                                        value="#{view$CadastrarFornecedor.selectInputDate1Bean.date1}" visible="true"/>
                                                    <!--Razão Social -->
                                                    <ice:outputLabel id="tx_razaoSocial" styleClass="rotulo" value="Razao Social: "/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoRazaoSocial}" id="campoRazaoSocial"
                                                        partialSubmit="true" styleClass="entradaTxt" title="Insira o nome Fantasia do Fornecedor."/>
                                                    <!-- Ramo Atividade -->
                                                    <ice:outputLabel id="tx_ramoAtividade" styleClass="rotulo" value="Ramo (*)"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoRamoAtividade}" id="campoRamoAtividade"
                                                        onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o Ramo de Trabalho do Fornecedor."/>
                                                    <!--CNPJ -->
                                                    <ice:outputLabel id="tx_cnpj" styleClass="rotulo" value="CNPJ (*):"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoCnpj}" id="campoCnpj" maxlength="18"
                                                        onkeypress="mascara(this,cnpj); style.backgroundColor='white';" partialSubmit="true"
                                                        styleClass="entradaTxt" title="Insira o CNPJ do Fornecedor."/>
                                                </ice:panelLayout>
                                                <ice:panelLayout id="panelLayoutA2" layout="flow" styleClass="pnLayForm2">
                                                    <!--Inscrição Estadual -->
                                                    <ice:outputLabel id="tx_inscricaoEstadual" styleClass="rotulo" value="Insc. Estadual (*):"/>
                                                    <ice:inputText action="#{view$CadastrarFornecedor.campoIncricaoEstadual_action}"
                                                        binding="#{view$CadastrarFornecedor.campoIncricaoEstadual}" id="campoIncricaoEstadual"
                                                        onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" tabindex="1" title="Insira a Inscrição Estadual do Fornecedor."/>
                                                    <!-- Telefone Comercial -->
                                                    <ice:outputLabel id="tx_comercial" styleClass="rotulo" value="Tel. Comercial (*):"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoTelefoneComercial}" id="campoTelefoneComercial"
                                                        maxlength="14" onkeypress="mascara(this,telefone);" partialSubmit="true" styleClass="entradaTxt" title="Insira o número do Telefone Comercial do Fornecedor."/>
                                                    <!-- Telefone Fax -->
                                                    <ice:outputLabel id="tx_Fax" styleClass="rotulo" value="Tel. Fax"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoFax}" id="campoFax" maxlength="14"
                                                        onkeypress="mascara(this,telefone);" partialSubmit="true" styleClass="entradaTxt" title="Insira o número do Fax do Fornecedor."/>
                                                    <!--E-Mail -->
                                                    <ice:outputLabel id="tx_email" styleClass="rotulo gd" value="E-Mail: "/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoEmail}" id="campoEmail" partialSubmit="true"
                                                        styleClass="entradaTxt gd" title="Insira o e-mail de contato do Fornecedor."/>
                                                    <!--Pagina WEB -->
                                                    <ice:outputLabel id="tx_paginaWeb" styleClass="rotulo gd" value="Página WEB: "/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoPaginaWeb}" id="campoPaginaWeb"
                                                        onkeypress="mascara(this,site);" partialSubmit="true" styleClass="entradaTxt gd" title="Insira o Site do Fornecedor se houver."/>
                                                </ice:panelLayout>
                                                <!--Próximo Passo -->
                                                <ice:commandLink action="#{view$CadastrarFornecedor.link_proximoPassoAba01_action}"
                                                    binding="#{view$CadastrarFornecedor.link_proximoPassoAba01}" id="link_proximoPassoAba01" styleClass="proximoBtn"/>
                                                <!-- Link Cancelar -->
                                                <ice:commandLink action="#{view$CadastrarFornecedor.linkCacelar_Aba01_action}" id="linkCacelar_Aba01"
                                                    immediate="true" styleClass="cancelarBtn"/>
                                            </ice:panelLayout>
                                        </ice:panelTab>
                                        <ice:panelTab binding="#{view$CadastrarFornecedor.aba02}" id="aba02" label="Endereco">
                                            <ice:panelLayout id="panelLayout2" layout="flow" styleClass="pnLayCadastro">
                                                <ice:panelLayout id="panelLayoutB1" layout="flow" styleClass="pnLayForm1">
                                                    <!--Rua -->
                                                    <ice:outputLabel id="tx_rua" styleClass="rotulo" value="Rua (*):"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoRua}" id="campoRua"
                                                        onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entadaTxt gd" title="Insira o Endereço do Fornecedor."/>
                                                    <!--Numero -->
                                                    <ice:outputLabel id="tx_numero" styleClass="rotulo" value="Número (*):"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoNumero}" id="campoNumero"
                                                        onkeypress="mascara(this,numeroEndereco); style.backgroundColor='white';" partialSubmit="true"
                                                        styleClass="entadaTxt pq" title="Insira o número referente ao Endereço do Fornecedor."/>
                                                    <!--Complemento -->
                                                    <ice:outputLabel id="tx_complemento" styleClass="rotulo" value="Complemento:"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoComplemento}" id="campoComplemento"
                                                        partialSubmit="true" styleClass="entadaTxt" title="Insira um Complemento referente ao Endereço."/>
                                                    <!--Bairro -->
                                                    <ice:outputLabel id="tx_bairro" styleClass="rotulo" value="Bairro (*)"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoBairro}" id="campoBairro"
                                                        onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entadaTxt" title="Insira o Bairro referente à Rua."/>
                                                </ice:panelLayout>
                                                <ice:panelLayout id="panelLayoutB2" layout="flow" styleClass="pnLayForm2">
                                                    <!--CEP -->
                                                    <ice:outputLabel id="tx_cep" styleClass="rotulo" value="CEP (*):"/>
                                                    <ice:inputText binding="#{view$CadastrarFornecedor.campoCep}" id="campoCep" maxlength="9"
                                                        onkeypress="mascara(this,cep); style.backgroundColor='white';" partialSubmit="true"
                                                        styleClass="entadaTxt" title="Insira o CEP da Cidade selecionada."/>
                                                    <!--Cidade -->
                                                    <ice:outputLabel id="tx_cidade" styleClass="rotulo" value="Cidade (*):"/>
                                                    <ice:selectOneMenu binding="#{view$CadastrarFornecedor.campoCidade}" id="campoCidade" partialSubmit="true"
                                                        styleClass="entadaTxt" title="Selecione uma Cidade." value="#{view$CadastrarFornecedor.botaoSelecionadoCidade.selectedObject}">
                                                        <f:selectItems id="selectOneMenu1selectItems1" value="#{view$CadastrarFornecedor.botaoCidade}"/>
                                                    </ice:selectOneMenu>
                                                    <!--Estado -->
                                                    <ice:outputLabel id="tx_uf" styleClass="rotulo" value="UF (*):"/>
                                                    <ice:selectOneMenu binding="#{view$CadastrarFornecedor.ufPessoaFisica}" id="ufPessoaFisica"
                                                        partialSubmit="true" styleClass="entadaRadio" title="Selecione um Estado."
                                                        value="#{view$CadastrarPessoaFisica.botaoSelecionadoUf.selectedObject}" valueChangeListener="#{view$CadastrarFornecedor.ufPessoaFisica_processValueChange}">
                                                        <f:selectItems id="selectOneMenu1selectItems" value="#{view$CadastrarFornecedor.botaoUf}"/>
                                                    </ice:selectOneMenu>
                                                </ice:panelLayout>
                                                <!--Cadastrar -->
                                                <ice:commandButton action="#{view$CadastrarFornecedor.btn_cadastrar_action}"
                                                    binding="#{view$CadastrarFornecedor.btn_cadastrar}" id="btn_cadastrar" styleClass="gravarBtn"/>
                                                <!-- Link Passo Anterior -->
                                                <ice:commandLink action="#{view$CadastrarFornecedor.linkAbaAnterior_action}" id="linkAbaAnterior"
                                                    partialSubmit="true" styleClass="anteriorBtn"/>
                                                <!-- Link Cancelar -->
                                                <ice:commandLink action="#{view$CadastrarFornecedor.linkCacelar_Aba02_action}" id="linkCacelar_Aba02" styleClass="cancelarBtn"/>
                                            </ice:panelLayout>
                                        </ice:panelTab>
                                    </ice:panelTabSet>
                                </ice:panelLayout>
                                <!--Fim - Painel Abas -->
                                <!-- Aviso Loading -->
                                <ice:outputConnectionStatus id="outputConnectionStatus1" styleClass="carregando"/>
                                <!--Campos Obrigatorios -->
                                <ice:outputLabel id="camposObrigatoriosAba01" styleClass="txtPequeno" value="(*) = Campo obrigatório"/>
                            </ice:panelLayout>
                            <ice:panelLayout id="cxConteudoBaixo" styleClass="cxConteudoBaixo"/>
                            <!--Fim - Painel Caixa de Conteudo -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!--Fim - Painel Conteúdo -->
                    </ice:panelGroup>
                    <!--Fim - Painel Principal -->
                    <!--Inicio - Janela Pop-up -->
                    <ice:panelPopup autoCentre="true" binding="#{view$CadastrarFornecedor.panelPopup}" draggable="true" id="panelPopup" modal="true"
                        rendered="#{view$CadastrarFornecedor.panelPopup1Bean1.showDraggablePanel}" style="left: -16px; top: 8px; position: absolute"
                        styleClass="jpopup" visible="#{view$CadastrarFornecedor.panelPopup1Bean1.showModalPanel}">
                        <f:facet name="header">
                            <ice:outputText id="outputText1" value="Atenção"/>
                        </f:facet>
                        <f:facet name="body">
                            <ice:panelGroup id="panelPopBody" styleClass="jpopBody">
                                <ice:panelLayout id="panelPopTxt" styleClass="jpopTxt">
                                    <ice:outputText binding="#{view$CadastrarFornecedor.textoPopUp}" id="textoPopUp" value="body text"/>
                                </ice:panelLayout>
                                <ice:panelLayout id="panelPopBtn" styleClass="jpopBtn">
                                    <ice:commandButton action="#{view$CadastrarFornecedor.btnPopUp1_action}" binding="#{view$CadastrarFornecedor.btnPopUp1}" id="btnPopUp1"/>
                                    <ice:commandButton action="#{view$CadastrarFornecedor.btnPopUp2_action}" binding="#{view$CadastrarFornecedor.btnPopUp2}" id="btnPopUp2"/>
                                </ice:panelLayout>
                            </ice:panelGroup>
                        </f:facet>
                    </ice:panelPopup>
                    <!--Fim - Janela Pop-up -->
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
</jsp:root>
